<template>

  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import { getToken } from './utils/auth'
export default {
  name: 'App',
  created () {
      if(getToken()){
        this.$get('/admin/manager/perm/list_all').then(data => {
          this.$store.dispatch('GenerateRoutes', data)
        });
      }
  }
}
</script>

<style>
*{
  font-size: 12px;
}
</style>
